#include "apue.h"
#include <pwd.h>
#include <stddef.h>
#include <string.h>
#include <shadow.h>
#include <grp.h>

int main(void) {
	struct passwd *p = getpwnam("konnn"); //getpwuid(1); //getpwnam("konnn");
	printf("pw_name = %s\n", p->pw_name);
	printf("pw_passwd = %s\n", p->pw_passwd);
	printf("pw_uid = %d\n", p->pw_uid);
	printf("pw_shell = %s\n", p->pw_shell);
	printf("pw_dir = %s\n", p->pw_dir);

	return 0;
}
